{% load analytics %}
{% load quantcast %}
{% load disqus %}
{% load blurb %}
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>{% block title %}{{ APP_NAME }}{% endblock %}</title>
		<link rel="shortcut icon" href="/favicon.ico">
		
        <link rel="stylesheet" href="{{ MEDIA_URL }}oocss/css/libraries.css">
        <link rel="stylesheet" href="{{ MEDIA_URL }}oocss/css/template.css">
        <link rel="stylesheet" href="{{ MEDIA_URL }}oocss/css/grids.css">
        <link rel="stylesheet" href="{{ MEDIA_URL }}oocss/css/content.css">
        <link rel="stylesheet" href="{{ MEDIA_URL }}oocss/css/mod.css">
        <link rel="stylesheet" href="{{ MEDIA_URL }}oocss/css/mod_skins.css">
        <link rel="stylesheet" href="{{ MEDIA_URL }}uni_form/uni-form.css">
        <link rel="stylesheet" href="{{ MEDIA_URL }}s_te/css/main.css">
        
        <script src="{{ MEDIA_URL }}s_te/js/main.js"></script>
		{% ifequal nav_page "cm_s_main" %}
			{% if GOOGLE_SITE_VERIFICATION %}
			     <meta name="google-site-verification" content="{{ GOOGLE_SITE_VERIFICATION }}" />
			{% endif %}
		{% endifequal %}
		{% block extrahead %}
		  <link rel="alternate" type="application/atom+xml" title="{{ BL_G_FEED_TITLE }}" href="{{ BL_G_FEED_URL }}">
		{% endblock %}
    </head>
    <body>
    	<div class="head header">
    		<div class="address" id="header-contact">
	    		<div class="page line">
		    		<div class="size1of1">
				    	<h1>Tel: {{ PHONE }}
					            Email:
					            <script language="javascript" type="text/javascript">
					                  makeAddress('{{ EMAIL_ACCOUNT }}', '{{ APP_BASE_URL }}');
					            </script>
					    </h1>
					</div>
				</div>
			</div>
			<div class="nav" id="header-nav">
				<div class="page line">
					<div class="size1of1">
			            <h1><a href="{% url cm_s_main %}">{{ APP_NAME }}</a></h1>
						<ul>
	                        <li>{% ifnotequal nav_page "pr_j_index" %}<a href="{% url pr_j_index %}">Work</a>{% else %}<span>Work</span>{% endifnotequal %}</li>
	                        <li>{% ifnotequal nav_page "cm_s_about" %}<a href="{% url cm_s_page "about" %}">About</a>{% else %}<span>About</span>{% endifnotequal %}</li>
	                        <li>{% ifnotequal nav_page "cm_s_services" %}<a href="{% url cm_s_page "services" %}">Services</a>{% else %}<span>Services</span>{% endifnotequal %}</li>
	                        <li>{% ifnotequal nav_page "c_ntact_form" %}<a href="{% url c_ntact_form %}">Contact</a>{% else %}<span>Contact</span>{% endifnotequal %}</li>
	                    </ul>
					</div>
	            </div>
			</div>
			<div class="section2 topper" id="introduction">
                <div class="page line">
                	<div class="unit size1of1">
                	   <h1>{% blurb "introduction" %}</h1>
					</div>
                </div>
            </div>
		</div>
    	<div class="page">
			<div class="body" id="body">
				<div class="line">
					<div class="unit size3of4">
						<div class="section2" id="article">
							<div class="article">
							  {% block article %}{% endblock %}
							</div>
						</div>
					</div>
					<div class="unit size1of4 lastUnit aside">
		                  {% ifequal section "blog" %}
							  {% if categories %}
	                              <div class="section2 mod simple" id="blog-sidebar">
	                                    <h1>Categories</h1>
	                                    <div class="padded">
	                                    	<ul>
		                                        {% for category in categories %}
		                                           <li><a href="{{ category.get_absolute_url }}">{{ category }}</a></li>
		                                        {% endfor %}
		                                    </ul>
										</div>
	                              </div>
                              {% endif %}
							  {% ifnotequal nav_page "bl_g_main" %}
	                                  {% include "bl_g/includes/entries.html" %}
	                          {% endifnotequal %}
					      {% else %}
                                  {% include "bl_g/includes/entries.html" %}
						  {% endifequal %}
						  
						  <div class="section2 mod simple" id="twitter-widget">
						  	<h1><a href="http://twitter.com/charlesdietrich">Twitter feed</a></h1>
							<div id="tweet">
								
							</div>
							<div class="footer"><p><a href="http://twitter.com/{{ TWITTER_USERNAME }}">Follow me on Twitter!</a></p></div>
						  </div>
					</div>
                </div>
			</div>
			<div class="foot footer" id="footer">
	            <div class="line nav">
	            	<div class="unit size1of4">
	                    <h1><a href="{% url pr_j_index %}">Work</a></h1>
						{% if featured_projects %}
	                    <ul>
	                        {% for project in featured_projects %}
	                          <li><a href="{{ project.get_absolute_url }}">{{ project }}</a></li>
	                        {% endfor %}
							<li><a href="{% url pr_j_index %}">more...</a></li>
	                    </ul>
	                    {% endif %}
	                </div>
					<div class="unit size1of4">
	                    <h1><a href="{% url cm_s_page "services" %}">Services</a></h1>
	                    <ul>
	                        <li><a href="{% url cm_s_page "programming-languages-and-technologies" %}">Programming Languages and Technologies</a></li>
	                        <li><a href="{% url cm_s_page "new-project-development" %}">New Project Development</a></li>
	                        <li><a href="{% url cm_s_page "management-collaboration-consulting" %}">Management, Collaboration and Consulting</a></li>
							<li><a href="{% url cm_s_page "services" %}">more...</a></li>
	                    </ul>
	                </div>
	                <div class="unit size1of4">
	                    <h1><a href="{% url t_ch_index %}">Technologies</a></h1>
	                    {% if primary_technologies %}
	                    <ul>
	                        {% for technology in primary_technologies %}
	                          <li><a href="{{ technology.get_absolute_url }}">{{ technology }}</a></li>
	                        {% endfor %}
							  <li><a href="{% url t_ch_index %}">more...</a></li>
	                    </ul>
	                    {% endif %}
					</div>
	                <div class="unit size1of4 lastUnit">
	                    <ul>
	                        <li><a href="{% url cm_s_main %}">Home</a></li>
	                        <li><a href="{% url cm_s_page "about" %}">About</a></li>
	                        <li><a href="{% url c_ntact_form %}">Contact</a></li>
							<li><a href="{% url endo_main %}">Testimonials</a></li>
							<li><a href="{% url s_te_calendar %}">Public Calendar</a></li>
	                   </ul>
					   {% if xfns %}
					    <ul>
						   	{% for xfn in xfns %}
							  <li><a href="{{ xfn.url }}"><img src="{{ xfn.icon.url }}"></a></li>
							{% endfor %}
						</ul>
					   {% endif %}
	                   <div class="address">
	                       <p>
		                        {{ STREET_ADDRESS|safe }}
						   </p>
	                   </div>
	                </div>
				</div>
				<div class="line copyright" id="copyright">
					<div class="unit size1of1">
			            &copy; 2009 {{ APP_NAME }}. All rights reserved.
						<ul>
							<li><a href="{% url cm_s_page "privacy" %}">Privacy</a></li>
							<li><a href="{% url cm_s_page "django-webdeveloper-portfolio" %}">Source code</a></li>
						</ul>
			        </div>
				</div>
	        </div>
		</div>
		{% if TRACKERS %}
			{% ga %}
			{% quantcast %}
		{% endif %}
		{% disqus %}
		<script src="http://twitterjs.googlecode.com/svn/trunk/src/twitter.min.js">
        </script>
		<script>
        getTwitters('tweet', { 
          id: '{{ TWITTER_USERNAME }}', 
          count: 1, 
          enableLinks: true, 
          ignoreReplies: true, 
          clearContents: true,
          template: '<p>%text%</p><div class="date"><p>%time%</p></div>'
        });
        </script>
    </body>
</html>







